package try_;

/**
 * @Author 小闽
 * @Date 2024/9/23 10:27
 * @PackageName: exception_
 * @ClassName: TryCatchDetail
 * @Description: 异常处理细节
 * @Version 1.0
 */
public class TryCatchDetail01 {
    public static void main(String[] args) {
//        String str = "苏宁易购";
          String str = "123";
        try{
            int a = Integer.parseInt(str);
            System.out.println("数字：" + a);
        }catch (Exception e){
//            e.printStackTrace();
            System.out.println("异常的信息= " +  e.getMessage() );
        }finally {
            System.out.println("finally代码块被执行...");
        }
        System.out.println("程序继续执行...");
    }
}
